//package cn.openread.es;
//
//import org.elasticsearch.client.RestHighLevelClient;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.data.elasticsearch.client.ClientConfiguration;
//import org.springframework.data.elasticsearch.client.RestClients;
//import org.springframework.data.elasticsearch.config.AbstractElasticsearchConfiguration;
//import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
//
///**
// * 用途：一切为了业务
// * <p>
// * Created by simon on 2020/3/7.
// */
//@Configuration
//@EnableElasticsearchRepositories
//class ApplicationConfiguration extends AbstractElasticsearchConfiguration {
//
//    @Override
//    public RestHighLevelClient elasticsearchClient() {
//        ClientConfiguration clientConfiguration = ClientConfiguration.builder()
//                .connectedTo("49.235.202.218:9200", "49.235.202.218:8200", "49.235.202.218:7200")
//                .build();
//        return RestClients.create(clientConfiguration).rest();
//    }
//}
